import { createApp } from 'vue'
import App from '@/App.vue'
import router from "./router";
import store from './store';
import { MotionPlugin } from "@vueuse/motion";

// element-plus 按需引入
import { useElementPlus } from "@/plugins/elementPlus"; // element-plus

import SvgIcon from '@/components/SvgIcon/index.vue';
import { useCustomSvgIcon } from "@/plugins/customSvgIcon";

import '@/style/index.scss'
// 导入字体图标
import "@/assets/iconfont/iconfont.js";

const app = createApp(App)
app.use(router)
app.use(store)
app.use(MotionPlugin);
app.use(useElementPlus)
app.component('svg-icon', SvgIcon); // 全局注册svg图标组件
app.use(useCustomSvgIcon)
app.mount('#app')
